package com.sxzbxc.weixin.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.sxzbxc.weixin.dao.DicSubstationDao;
import com.sxzbxc.weixin.entity.DicSubstation;
import com.sxzbxc.weixin.service.DicSubstationServiceI;
@Service
@Transactional
public class DicSubstationServiceImpl implements DicSubstationServiceI {

	@Autowired
	private DicSubstationDao dicSubstationDao;
	
	@Override
	public List<DicSubstation> loadAll() {
		List<DicSubstation> loadAll = dicSubstationDao.loadAll();
		return loadAll;
	}

	@Override
	public void insertSelective(DicSubstation entity) {
		dicSubstationDao.insertSelective(entity);
	}

	@Override
	public DicSubstation selectByPrimaryKey(String id) {
		DicSubstation dicSubstation = dicSubstationDao.selectByPrimaryKey(id);
		if(dicSubstation!=null){
			return dicSubstation;
		}
		return null;
	}

	@Override
	public void updateByPrimaryKeySelective(DicSubstation record) {
		dicSubstationDao.updateByPrimaryKeySelective(record);
	}

	@Override
	public void deleteByPrimaryKey(String id) {
		dicSubstationDao.deleteByPrimaryKey(id);
	}

}
